<template>
  <button class="hm-button" @click="dianji">通用按钮</button>
</template>

<script>
export default {
  methods: {
    dianji() {
      alert("点击了通用按钮！");
    },
  },
};
</script>

<style>
.hm-button {
    height: 50px;
    line-height:20px ;
    padding: 0 20px;
    background-color: coral;
    border-radius: 5px;
}
</style>